package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AppUserApplyMapper;
import com.ruoyi.system.domain.AppUserApply;
import com.ruoyi.system.service.IAppUserApplyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
 * 理赔申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-28
 */
@Service
public class AppUserApplyServiceImpl  extends ServiceImpl<AppUserApplyMapper, AppUserApply>  implements IAppUserApplyService
{
    @Autowired
    private AppUserApplyMapper appUserApplyMapper;

    /**
     * 查询理赔申请
     * 
     * @param id 理赔申请主键
     * @return 理赔申请
     */
    @Override
    public AppUserApply selectAppUserApplyById(Long id)
    {
        return appUserApplyMapper.selectAppUserApplyById(id);
    }

    /**
     * 查询理赔申请列表
     * 
     * @param appUserApply 理赔申请
     * @return 理赔申请
     */
    @Override
    public List<AppUserApply> selectAppUserApplyList(AppUserApply appUserApply)
    {
        return appUserApplyMapper.selectAppUserApplyList(appUserApply);
    }

    /**
     * 新增理赔申请
     * 
     * @param appUserApply 理赔申请
     * @return 结果
     */
    @Override
    public int insertAppUserApply(AppUserApply appUserApply)
    {
        appUserApply.setCreateTime(DateUtils.getNowDate());
        return appUserApplyMapper.insertAppUserApply(appUserApply);
    }

    /**
     * 修改理赔申请
     * 
     * @param appUserApply 理赔申请
     * @return 结果
     */
    @Override
    public int updateAppUserApply(AppUserApply appUserApply)
    {
        appUserApply.setUpdateTime(DateUtils.getNowDate());
        return appUserApplyMapper.updateAppUserApply(appUserApply);
    }

    /**
     * 批量删除理赔申请
     * 
     * @param ids 需要删除的理赔申请主键
     * @return 结果
     */
    @Override
    public int deleteAppUserApplyByIds(Long[] ids)
    {
        return appUserApplyMapper.deleteAppUserApplyByIds(ids);
    }

    /**
     * 删除理赔申请信息
     * 
     * @param id 理赔申请主键
     * @return 结果
     */
    @Override
    public int deleteAppUserApplyById(Long id)
    {
        return appUserApplyMapper.deleteAppUserApplyById(id);
    }
}
